#  Project       mcutools
#  (c) copyright 2023.05
#  Company       Autolink
#                All rights reserved
#  Secrecy Level STRICTLY CONFIDENTIAL
#
#        Package  : dbcp
#        Description: dbc parse tool
#        Author: hezy
#        Date  : 2023-05-07

'''
1.模块说明
模板文件 + 配置文件 = 目标文件
指定配置路径：project/configure/{module_name}/
指定模板路径：project/configure/{module_name}/templates
指定输出路径：output/components/{module_name}/


2.示例
from workspace.Platform.codegen import codegen


if __name__ == '__main__':
    code_gen = codegen.CodeGenerator('test', 'rules')

    rules = code_gen.load_rules()

    del rules['functions'][0]

    code_gen.save_rules(rules)
    
    code_gen.generator(rules, code_gen.template_files[0], 'test_nvm_get_did.c', 'nvm generate')

'''

